import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsString } from 'class-validator';

export class QueryUserDto {
  @ApiProperty({
    description: '姓名',
    default: null,
  })
  @IsString()
  name?: string;
  @ApiProperty({
    description: '用户名',
    default: null,
  })
  @IsString()
  username?: string;
  @ApiProperty({
    description: '手机号码',
    default: null,
  })
  @IsString()
  mobile?: string;
  @ApiProperty({
    description: '是否禁用',
    default: null,
  })
  @IsBoolean()
  disabled?: boolean;
}
